package com.learn.core.service.impl;

import com.learn.core.domain.LExamUser;
import com.learn.core.mapper.LExamUserMapper;
import com.learn.core.service.ILExamUserService;
import com.learn.framework.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LExamUserServiceImpl
 * @date 2021.04.13 10:29
 */
@Service
public class LExamUserServiceImpl extends BaseServiceImpl<LExamUserMapper, LExamUser> implements ILExamUserService {
    @Autowired
    LExamUserMapper lExamUserMapper;

    @Override
    public List<Map<String, Object>> selectNum(Integer id,String type) {
        if("1".equals(type)){
            return lExamUserMapper.selectNum1(id);
        }else if("2".equals(type)){
            return lExamUserMapper.selectNum2(id);
        }else{
            return lExamUserMapper.selectNum3(id);
        }
    }
}
